package org.rcy.ruicingmarket.interceptor;

import feign.RequestInterceptor;
import feign.RequestTemplate;

import java.util.UUID;

public class FeignInterceptor implements RequestInterceptor {
	@Override
	public void apply(RequestTemplate template) {
		try {

			String uuid = UUID.randomUUID().toString();
			String feignkey = "feign-token";
			template.header(feignkey,uuid);
			template.header("Content-Type: application/x-www-form-urlencoded");
		} catch (Exception e) {

		}
	}

}